<template>
  <div class="preview-box">
    <FilePreview :fileType="fileType" :url="url" :type="type"/>
  </div>
</template>

<script>
import FilePreview from '@/components/filePreview/index.vue';
export default {
  name: 'FilePreviewPage',
  components: { FilePreview },
  data() {
    return {
      fileType: '',
      url: ''
    };
  },
  created() {
    this.fileType = this.$route.params.fileType;
    this.url = this.$route.params.url;
    this.type = this.$route.params.type;
  }
};
</script>
<style lang="scss" scoped>
.preview-container {
  width: 100%;
  height: 100vh;
}
</style>
